<?php
$ArPlans = Dracosys::getSessionValue(SESSION_INTERFACE, 'PlanList');
?>
<h2>Cadastro de Clientes</h2>
<section id="CreateCustomer">
    <form method="post" action="cliete/inserir" name="FormCadastrarCliente">
        <section id="CreateCustomer_Type">
            <div class="title" id="CreateEmpl_toggleFerramentas">Tipo de Cliente</div>
            <div class="inp_txt unique">
                <input type="radio" name="EnTipoCliente" value="FISICA" checked="checked" id="CreateCustomer_Fisica" class="radio" /> <label for="CreateCustomer_Fisica">Pessoa Fisica</label>
                <input type="radio" name="EnTipoCliente" value="JURIDICA" id="CreateCustomer_Juridica" class="radio" /> <label for="CreateCustomer_Juridica">Pessoa Juridica</label>
            </div>
        </section>
        <section id="CreateCustomer_Individual">
            <div class="title" id="CreateEmpl_toggleIndividual">Dados do Respons&aacute;vel</div>
            <div class="out_txt big"><label for="CreateCustomer_StNome">Nome</label></div>
            <div class="inp_txt big"><input type="text" name="StNome" id="CreateCustomer_StNome" value="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_DtNascimento">Nascimento</label></div>
            <div class="inp_txt big"><input type="text" name="DtNascimento" id="CreateCustomer_DtNascimento" value="" class="Date" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StCpf">Cpf</label></div>
            <div class="inp_txt big"><input type="text" name="StCpf" id="CreateCustomer_StCpf" value="" class="Cpf" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StRg">Rg</label></div>
            <div class="inp_txt big"><input type="text" name="StRg" id="CreateCustomer_StRg" value="" /></div>
        </section>
        <section id="CreateCustomer_Enterprise">
            <div class="title" id="CreateEmpl_toggleEnterprise">Dados da Empresa</div>
            <div class="out_txt big"><label for="CreateCustomer_StCargo">Cargo do Representante</label></div>
            <div class="inp_txt big"><input type="text" name="StCargo" id="CreateCustomer_StCargo" value="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StRazaoSocial">Razão Social</label></div>
            <div class="inp_txt big"><input type="text" name="StRazaoSocial" id="CreateCustomer_StRazaoSocial" value="" class="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StNomeFantasia">Nome Fantasia</label></div>
            <div class="inp_txt big"><input type="text" name="StNomeFantasia" id="CreateCustomer_StNomeFantasia" value="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_DtFundacao">Fundação</label></div>
            <div class="inp_txt big"><input type="text" name="DtFundacao" id="CreateCustomer_DtFundacao" value="" class="Date" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StCnpj">CNPJ</label></div>
            <div class="inp_txt big"><input type="text" name="StCnpj" id="CreateCustomer_StCnpj" value="" class="Vat" /></div>
        </section>
        <section id="CreateCustomer_Contact">
            <div class="title" id="CreateEmpl_toggleContact">Dados de Contato</div>
            <div class="out_txt big"><label for="CreateCustomer_StEmail">Email</label></div>
            <div class="inp_txt big"><input type="text" name="StEmail" id="CreateCustomer_StEmail" value="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StEndereco">Endere&ccedil;o</label></div>
            <div class="inp_txt big"><input type="text" name="StEndereco" id="CreateCustomer_StEndereco" value="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StNumero">N&uacute;mero</label></div>
            <div class="inp_txt big"><input type="text" name="StNumero" id="CreateCustomer_StNumero" value="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StComplemento">Complemento</label></div>
            <div class="inp_txt big"><input type="text" name="StComplemento" id="CreateCustomer_StComplemento" value="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StBairro">Bairro</label></div>
            <div class="inp_txt big"><input type="text" name="StBairro" id="CreateCustomer_StBairro" value="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StCidade">Cidade</label></div>
            <div class="inp_txt big"><input type="text" name="StCidade" id="CreateCustomer_StCidade" value="" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StEstado">Estado</label></div>
            <div class="inp_txt big"><input type="text" name="StEstado" id="CreateCustomer_StEstado" value="" class="Uf" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StCep">Cep</label></div>
            <div class="inp_txt big"><input type="text" name="StCep" id="CreateCustomer_StCep" value="" class="ZipCode" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StDddTelefone">DDD Telefone</label></div>
            <div class="inp_txt big"><input type="text" name="StDddTelefone" id="CreateCustomer_StDddTelefone" value="" class="DddPhone" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StTelefone">Telefone</label></div>
            <div class="inp_txt big"><input type="text" name="StTelefone" id="CreateCustomer_StTelefone" value="" class="Phone" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StDddCelular">DDD Celular</label></div>
            <div class="inp_txt big"><input type="text" name="StDddCelular" id="CreateCustomer_StDddCelular" value="" class="DddPhone" /></div>
            <div class="out_txt big"><label for="CreateCustomer_StCelular">Celular</label></div>
            <div class="inp_txt big"><input type="text" name="StCelular" id="CreateCustomer_StCelular" value="" class="Phone" /></div>
        </section>
        <section id="CreateCustomer_Financial">
            <div class="title" id="CreateEmpl_toggleFinancial">Dados Financeiros</div>
            <div class="out_txt big"><label for="CreateCustomer_IDPlano">Plano</label></div>
            <div class="inp_txt big">
                <select name="IDPlano" id="CreateCustomer_IDPlano">
                    <option value="">Selecione um Plano</option>
                    <?php foreach ($ArPlans as $Plan): ?>
                        <option value="<?= $Plan->getIDPlano() ?>"><?= $Plan->getStNome() ?></option>
                    <?php endforeach; ?>
                </select>
            </div>
            <div class="out_txt big">Tipo de Pagamento</div>
            <div class="inp_txt big">
                <input type="radio" name="EnTipoPagamento" value="CARTAO" id="CreateCustomer_EnTipoPagamentoCartao" class="radio" /> <label for="CreateCustomer_EnTipoPagamentoCartao">Cart&atilde;o</label>
                <input type="radio" name="EnTipoPagamento" value="BOLETO" id="CreateCustomer_EnTipoPagamentoBoleto" class="radio" /> <label for="CreateCustomer_EnTipoPagamentoBoleto">Boleto</label>
            </div>
            <div class="out_txt big"><label for="CreateCustomer_EnTipoPeriodicidade">Periodicidade</label></div>
            <div class="inp_txt big">
                <input type="radio" name="EnPeriodicidade" value="MENSAL" id="CreateCustomer_EnPeriodicidadeMensal" class="radio" /> <label for="CreateCustomer_EnPeriodicidadeMensal">Mensal</label>
                <input type="radio" name="EnPeriodicidade" value="ANUAL" id="CreateCustomer_EnPeriodicidadeAnual" class="radio" /> <label for="CreateCustomer_EnPeriodicidadeAnual">Anual</label>
            </div>
            <div class="out_txt big"><label for="CreateCustomer_ItDesconto">Desconto ao Cliente (%)</label></div>
            <div class="inp_txt big"><input type="text" name="ItDesconto" id="CreateCustomer_ItDesconto" value="" /></div>
        </section>
        <div class="btn"><button class="v1">Cadastrar</button></div>
    </form>
</section>